package com.ccsoft.zknote.service;

import com.ccsoft.zknote.exception.ServiceException;
import com.ccsoft.zknote.pojo.Thing;
import com.ccsoft.zknote.pojo.User;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @author chanchaw
 * @create 2023-07-08 22:26
 */
public interface IThingService {
    List<Thing> getUserThings(Integer userId);
    List<Thing> getUserThings8Token(String token);
    Boolean setTop(Boolean top, Integer id);
    Boolean delete8Id(Integer id);
    Boolean delete8Id(Integer id, Boolean thoroughly);
    Thing selectByPrimaryKey(Integer id);
    Thing insertSelective(Thing record);
    Thing updateSelective(Thing record);
    Thing insertSelective(Thing record, String token);
    List<Thing> search(String search, Integer finished, String token);
    List<Thing> test1(String keywords);
}
